<!doctype html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<html>
<head>
    <%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    %>
    <%@ include file="/WEB-INF/views-jsp/include/taglib/taglib.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/meta/meta.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/link/link.jsp" %>
    <%@ include file="/WEB-INF/views-jsp/include/script/script.jsp" %>
    <script type="text/javascript" src="${path}/html/js/js-jsp/st/contractDetail/contractDetailEdit.js?v=<%out.print(Math.random());%>"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/common/select-plugin.js"></script>
    <script type="text/javascript" src="${path}/html/js/js-jsp/common.js"></script>
</head>
<body>
<div class="place">
    <span>当前位置：</span>
    <ul class="placeul">
        <li><a href="${path}/contractDetail/contractDetailInventoryListIndex.do?coId=${contractDetail.coId}" style="background: transparent; border: none">合同清单管理</a></li>
        <li><a style="background: transparent; border: none">修改合同清单</a></li>
    </ul>
</div>
<form id="operate_form" class="form" method="post" action="#">
    <div class="formbody">
        <div class="formtitle"><span>基本信息</span></div>
        <table id="contractDetailDesc" align="center" border="0" width="100%">
            <ul class="forminfo">
                <li><input type="hidden" name="cdId" id="cdId" value="${contractDetail.cdId}" /></li>
                <li><input type="hidden" name="coId" id="coId" value="${contractDetail.coId}" /></li>
                <li><input type="hidden" name="maId" id="maId" value="${contractDetail.maId}" /></li>
                <li><input name="purchasedNum" id="purchasedNum" type="hidden" value="${contractDetail.purchasedNum}"/></li>
                <li>
                    <label>项目名称：</label>
                    <input class="easyui-textbox" name="project.prName" id="prName" value="${contractDetail.project.prName}"
                           style="width:255px; height: 30px" data-options="readonly:true,validType:'length[1,18]', prompt:'请输入项目名称'"/>
                </li>
                <li>
                    <label>合同名称：</label>
                    <input class="easyui-textbox" name="contract.coName" id="coName" value="${contractDetail.contract.coName}"
                           style="width:255px; height: 30px" data-options="readonly:true,validType:'length[1,18]', prompt:'请输入合同名称'" />
                </li>
                <li>
                    <label>合同编号：</label>
                    <input class="easyui-textbox" name="contract.coNumber" id="coNumber" value="${contractDetail.contract.coNumber}"
                           style="width:255px; height: 30px" data-options="readonly:true,validType:'length[1,18]', prompt:'请输入合同编号'" />
                </li>
                <li>
                    <input type="hidden" name="material.maId" id="maId" value="${contractDetail.maId}" />
                    <label>材料名称：</label>
                    <input class="easyui-textbox" name="material.materialName" id="materialName"
                           style="width:255px; height: 30px" value="${contractDetail.material.materialName}" data-options="required:'true',validType:'length[1,18]',prompt:'请输入材料名称'" missingMessage="材料名称不能为空">
                </li>
                <li>
                    <label>材料品牌：</label>
                    <input class="easyui-textbox" name="material.brand" id="brand"
                           style="width:255px; height: 30px" value="${contractDetail.material.brand}" data-options="validType:'length[1,18]',prompt:'请输入材料品牌'">
                </li>
                <li>
                    <label>规格型号：</label>
                    <input class="easyui-textbox" name="material.standardType" id="standardType"
                           style="width:255px; height: 30px" value="${contractDetail.material.standardType}"  data-options="required:'true',validType:'length[1,18]',prompt:'请输入规格型号'" missingMessage="规格型号不能为空"/>
                </li>
                <li>
                    <label>技术参数：</label>
                    <input class="easyui-textbox" name="material.technicalParameter" id="technicalParameter"
                           style="width:255px; height: 30px" value="${contractDetail.material.technicalParameter}"  data-options="validType:'length[1,18]',prompt:'请输入技术参数'"/>
                </li>
                <li>
                    <label>计量单位：</label>
                    <input class="easyui-textbox" name="material.meteringUnit" id="meteringUnit" style="width:255px; height: 30px"  value="${contractDetail.material.meteringUnit}"  data-options="validType:'length[1,18]',prompt:'请输入规格型号'"/>
                </li>
                <li>
                    <label>工程总量：</label>
                    <input class="easyui-textbox" name="totalCount" id="totalCount"
                           style="width:255px; height: 30px" value="${contractDetail.totalCount}"  data-options="required:'true',validType:'length[1,18]',prompt:'请输入工程总量'" missingMessage="工程总量不能为空"/>
                </li>
                <li>
                    <label>合同单价：</label>
                    <input class="easyui-textbox" name="unitContractPrice" id="unitContractPrice"
                           style="width:255px; height: 30px" value="${contractDetail.unitContractPrice}"  data-options="required:'true',validType:'length[1,18]',prompt:'请输入合同单价'" missingMessage="合同单价不能为空"/>
                </li>
                <li>
                    <label>综合单价：</label>
                    <input class="easyui-textbox" name="material.unitPrice" id="unitPrice"
                           style="width:255px; height: 30px" value="${contractDetail.material.unitPrice}"  data-options="required:'true',validType:'length[1,18]',prompt:'请输入综合单价'" missingMessage="综合单价不能为空"/>
                </li>
                <li>
                    <label>合计金额：</label>
                    <input class="easyui-textbox" name="totalPrice" id="totalPrice" style="width:255px; height: 30px" data-options="readonly:true, validType:'length[1,18]',multiline:true,prompt:'请输入合计金额'" value=""/>
                </li>
                <li>
                    <label style="vertical-align: top;">项目特性描述：</label>
                    <input class="easyui-textbox" name="material.characterization" id="characterization" style="width:255px; height: 100px" data-options="validType:'length[1,30]',multiline:true,prompt:'请输入项目概述'" value="${contractDetail.material.characterization}"/>
                </li>
            </ul>
            <div class="formbody" style="margin-left: 120px">
                <a id="editContractDetail" class="easyui-linkbutton c1" style="width:120px; height: 35px">保存</a>
                &nbsp;&nbsp;&nbsp;
                <a href="${path}/contractDetail/contractDetailInventoryListIndex.do?coId=${contractDetail.coId}" class="easyui-linkbutton c1" style="width:120px; height: 35px">取消</a>
            </div>
        </table>
    </div>
</form>
</body>
</html>